HTML5 New <input> Types
Type | Description |
---|---|
color |
Represents an input field for selecting a color. |
date |
Represents an input field for selecting a date. |
datetime |
Represents a display of full date and time with time zone information. |
datetime-local |
Represents date and time without time zone information. |
email |
Represents an input field with email pattern validation. |
month |
Represents an input field to enter a month for a specific year. |
number |
Represents a field that selects a numeric value only. |
range |
Represents a numeric value selector within a specified range. |
search |
Represents a search field. |
tel |
Represents a control to enter a telephone number. |
time |
Represents a control to enter a time value without time zone. |
url |
Represents an input field to enter a URL. |
week |
Represents a selector for a week value in a specific year. |
HTML5 – New Tags
As we know HTML5 is a new version of HTML ( Hypertext markup language). HTML5 introduced many new tags that will benefit many developers. These tags are generally supported by all major browsers. These tags belong to many aspects such as graphics, media, and forms.